@extends('admin.layout')
@section('title', $title)

@section('content')
 <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
               
                <small>
                    @if(session('info'))
                        <span id="info" class="text-red">{{session('info')}}</span>
                    @endif
                </small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{url('/admin/index')}}"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="{{url('/admin/Notice/add')}}">公告添加</a></li>
                <li class="active">用户列表</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">快速修改公告</h3>

                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <form role="form" action="{{ url('/admin/Notice/update')}}" method="post" enctype="multipart/form-data">
                        	{{ csrf_field()}}
                            <div class="box-body">
	                          

                              
                                <input type="hidden" name='id' value="{{ $list->id }}">
                                <div class="form-group">
                                    <label for="exampleInputPassword1">公告</label>
                                    <input value="{{ $list -> name }}" type="text" class="form-control" name="name" 
                                           placeholder="请输入公告名称" required="required">
                                </div>
                                <div class="form-group">
                                     @include("zhangmazi::ueditor")
                                     <script id="ueditor_filed" name="Noticetext" type="text/plain"> {!! $list -> Noticetext !!} </script>
                                     <script>
                                        var ueditor_full = UE.getEditor('ueditor_filed', {
                                        'serverUrl' : '{{ route("zhangmazi_front_ueditor_service", ['_token' => csrf_token()]) }}'
                                        });
                                    </script>
                                </div>
                                
                            </div><!-- /.box-body -->
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">提交</button>
                                
                            </div>
                        </form>
                    </div><!-- /.box -->

                    <!-- Form Element sizes -->
                </div><!--/.col (left) -->
                <!-- right column -->
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
<script>


        window.onload = function()
        {
          

          $('#info').fadeOut(1000);
        }

    </script>
@endsection